#ifndef MAINPAGE_H
#define MAINPAGE_H

#include <QWidget>

enum AppType{
    homeApp,
    cameraApp,
    photoApp,
    musicApp,
    videoApp,
    mapApp,
    messageApp,
    clockApp,
    settingApp
};

namespace Ui {
class mainpage;
}

class mainpage : public QWidget
{
    Q_OBJECT

public:
    explicit mainpage(QWidget *parent = nullptr);
    ~mainpage();

signals:
    void switchToPage(AppType index);
private slots:
    void on_cameraBtn_clicked();

    void on_photoBtn_clicked();

    void on_musicBtn_clicked();

    void on_videoBtn_clicked();

    void on_mapBtn_clicked();

    void on_messageBtn_clicked();

    void on_clockBtn_clicked();

    void on_settingBtn_clicked();

private:
    Ui::mainpage *ui;
};

#endif // MAINPAGE_H
